package com.wurao.controller.websocket;

import com.wurao.entity.Blog;
import com.wurao.entity.Comment;
import com.wurao.lucene.BlogIndex;
import com.wurao.service.BlogService;
import com.wurao.service.CommentService;
import com.wurao.util.ExcelView;
import com.wurao.util.StringUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * websocket
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/qq")
public class ChatController {

	@Resource
	private BlogService blogService;
	@Resource
	private CommentService commentService;


	private BlogIndex blogIndex=new BlogIndex();

	/**
	 * 请求博客详细信息
	 * @param id
	 * @param request
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/{id}/{name}")
	public ModelAndView details(@PathVariable("id") Integer id,@PathVariable("name") String name,HttpServletRequest request)throws Exception{
		ModelAndView mav=new ModelAndView();

		mav.addObject("flow", "name");

		mav.setViewName("other/qq/jd_chat");
		return mav;
	}






}
